<template>
  <div style="background-color: #f5f7fa">
    <header class="header">
      <div class="header-container">
        <h1 class="logo">ipss课题组-张延滋</h1>
        <div class="login-btn-container">
          <button id="loginBtn" class="login-btn" @click="goBack">
            返回上一页
          </button>
        </div>
      </div>
    </header>
    <div class="page-wrap">
      <!-- 头部信息 -->
      <el-card class="hero" shadow="hover">
        <div class="hero-inner">
          <el-avatar :size="120" :src="avatar" @error="() => true" />
          <div class="hero-text">
            <div class="name-row">
              <h1 class="name">张延滋</h1>
              <el-tag type="success" round>助理教授 / 特别副研究员</el-tag>
              <el-tag type="primary" round v-if="isPhDAdvisor">博导</el-tag>
              <el-tag round v-if="isMasterAdvisor">硕导</el-tag>
            </div>
            <div class="subline">机械与车辆学院 · 工业工程专业</div>
            <div class="links">
              <el-link type="primary" :href="scholarUrl" target="_blank"
                >Google Scholar</el-link
              >
            </div>
          </div>
        </div>

        <el-divider />

        <!-- 基本信息 -->
        <el-descriptions :column="3" border size="large" class="basic">
          <el-descriptions-item label="办公地址"
            >中关村校区1号教学楼337</el-descriptions-item
          >
          <el-descriptions-item label="邮编">100081</el-descriptions-item>
          <el-descriptions-item label="邮箱">
            <el-link :href="`mailto:${email}`" type="primary">{{
              email
            }}</el-link>
          </el-descriptions-item>
        </el-descriptions>

        <!-- 个人简介 -->
        <el-alert
          title="个人简介"
          type="info"
          :closable="false"
          class="intro-title"
        />
        <div class="intro">
          <p>
            张延滋，女，北京理工大学机械与车辆学院助理教授。2014年本科毕业于北京交通大学管理科学与工程专业，
            2017–2018年于普渡大学 Krannert
            管理学院访学交流，2020年获清华大学管理科学与工程博士学位，
            2020–2022年在清华大学工业工程系从事博士后研究工作。
          </p>
          <p>
            从事运筹优化、最优化理论、非线性规划算法、以及机器学习在可持续供应链网络规划、
            可靠性服务网络规划、新能源汽车服务运营等方面的研究。在《TRB》《TRE》《Applied
            Energy》 《Omega》《IEEE TASE》《JCP》等期刊发表论文7篇，并在《IISE
            Transactions》发表论文1篇， 兼任 CIE、APJOR、IEEE RAL
            等期刊审稿人。目前主持国家自然科学基金青年项目1项、面上项目1项，
            以及已结题的博士后科学基金面上项目1项。
          </p>
        </div>
      </el-card>

      <!-- 内容分栏 -->
      <el-card class="content-card" shadow="never">
        <el-tabs tab-position="top" class="tabs">
          <!-- 研究方向 -->
          <el-tab-pane label="研究领域与方向">
            <div class="section">
              <el-descriptions :column="1" border>
                <el-descriptions-item label="研究领域">
                  供应链、物流、生产系统、服务系统的运营管理
                </el-descriptions-item>
              </el-descriptions>

              <h3 class="subhead">当前主要方向</h3>
              <el-row :gutter="12">
                <el-col :xs="24" :md="12">
                  <el-card class="dir-card" shadow="never">
                    <div class="dir-title">数据驱动的决策支持</div>
                    <ul class="bullets">
                      <li>整数规划、随机优化、鲁棒优化</li>
                      <li>机器学习、强化学习</li>
                    </ul>
                  </el-card>
                </el-col>
                <el-col :xs="24" :md="12">
                  <el-card class="dir-card" shadow="never">
                    <div class="dir-title">
                      可持续/可靠性/韧性供应链服务网络规划
                    </div>
                    <ul class="bullets">
                      <li>逆向/闭环供应链</li>
                      <li>设施选址、库存管理、资源配置</li>
                    </ul>
                  </el-card>
                </el-col>
                <el-col :xs="24" :md="12">
                  <el-card class="dir-card" shadow="never">
                    <div class="dir-title">新能源汽车服务运营</div>
                    <ul class="bullets">
                      <li>充电站/换电站选址</li>
                      <li>电池库存与调配</li>
                    </ul>
                  </el-card>
                </el-col>
                <el-col :xs="24" :md="12">
                  <el-card class="dir-card" shadow="never">
                    <div class="dir-title">方法论与算法</div>
                    <ul class="bullets">
                      <li>运筹优化、最优化理论、非线性规划算法</li>
                      <li>启发式算法</li>
                    </ul>
                  </el-card>
                </el-col>
              </el-row>
            </div>
          </el-tab-pane>

          <!-- 代表性论文 -->
          <el-tab-pane label="代表性论文">
            <el-timeline>
              <el-timeline-item
                v-for="(p, i) in papers"
                :key="i"
                :timestamp="p.year"
                placement="top"
              >
                <div class="item-title">[{{ i + 1 }}] {{ p.citation }}</div>
                <div v-if="p.note" class="item-sub">{{ p.note }}</div>
              </el-timeline-item>
            </el-timeline>
            <div class="more-link">
              <el-link type="primary" :href="scholarUrl" target="_blank"
                >更多论文见 Google Scholar</el-link
              >
            </div>
          </el-tab-pane>

          <!-- 代表性科研项目 -->
          <el-tab-pane label="代表性科研项目">
            <el-timeline>
              <el-timeline-item
                v-for="(pr, i) in projects"
                :key="i"
                :timestamp="pr.period"
                placement="top"
                type="primary"
              >
                <div class="item-title">{{ pr.title }}</div>
                <div class="item-sub">
                  类别：{{ pr.type }} · 角色：主持 · {{ pr.status }}
                </div>
              </el-timeline-item>
            </el-timeline>
          </el-tab-pane>
        </el-tabs>
      </el-card>

      <div class="source">
        数据来源：
        <el-link
          type="primary"
          href="https://me.bit.edu.cn/szdw/jsml/zzgcx/gygcyjs/gygcyjsqnjs/712cdfd705f7423ba8e7bed67a88e747.htm"
          target="_blank"
        >
          北京理工大学 机械与车辆学院网站 — 张延滋
        </el-link>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from "vue";
import { useRouter } from "vue-router";

// 使用 useRoute 获取路由参数
// const route = useRoute();
// const name = route.params.name; // 获取路由参数 name

const router = useRouter();
// 返回上一页
const goBack = () => {
  router.push({
    name: "HomePage",
    query: { tab_active: "members" },
  }); // 返回上一页
};
/** 头像：页面存在图片占位，若加载失败则保持默认圆形背景 */
const avatar = ref("/images/zhangyanzi.jpeg");

/** 导师资格（页面为“□博导 ☑硕导”） */
const isPhDAdvisor = false;
const isMasterAdvisor = true;

/** 联系方式 */
const email = "zhangyz@bit.edu.cn";

/** 学术主页 */
const scholarUrl =
  "https://scholar.google.com/citations?user=eIzG5BgAAAAJ&hl=zh-CN&oi=ao";

/** 代表性论文（与页面一致，含期刊与影响因子备注） */
const papers = [
  {
    year: "2024",
    citation:
      "Zhang, Y., Berenguer, G., & Zhang, Z. H. A subsidized reverse supply chain in the Chinese electronics industry. Omega, 122, 102937.",
    note: "影响因子 6.9",
  },
  {
    year: "2023",
    citation:
      "Gong, H., Zhang, Y., & Zhang, Z. H. Training Demand Prediction Models by Decision Error for Two-Stage Lot-Sizing Problems. IEEE Transactions on Automation Science and Engineering.",
    note: "Top 期刊，影响因子 5.6",
  },
  {
    year: "2023",
    citation:
      "Zhang, M., Zhang, Y.*, Jiao, Z., & Wang, J. Improving relief operations via optimizing shelter location with uncertain covariates. Transportation Research Part E, 176, 103181.",
    note: "Top 期刊，影响因子 10.6",
  },
  {
    year: "2021",
    citation:
      "Zhang, Yanzi, Diabat, Ali, Zhang, Zhi-Hai*. Reliable closed-loop supply chain design problem under facility-type-dependent probabilistic disruptions. Transportation Research Part B, 146, 180–209.",
    note: "Top 期刊，影响因子 6.8",
  },
  {
    year: "2021",
    citation:
      "Ran, Cuiling, Zhang, Yanzi*, Yin, Ying. Demand response to improve the shared electric vehicle planning: Managerial insights, sustainable benefits. Applied Energy, 292, 116823.",
    note: "Top 期刊，影响因子 11.2",
  },
  {
    year: "2021",
    citation:
      "Jiao, Z., Ran, L., Zhang, Y., & Ren, Y. Robust vehicle-to-grid power dispatching operations amid sociotechnical complexities. Applied Energy, 281, 115912.",
    note: "Top 期刊，影响因子 11.2",
  },
  {
    year: "2019",
    citation:
      "Zhang, Yanzi, Zhang, Zhi-Hai*. Impact of the cannibalization effect between new and remanufactured products on supply chain design and operations. IISE Transactions, 51(1), 22–40.",
    note: "影响因子 2.6",
  },
  {
    year: "2018",
    citation:
      "Jiao, Zihao, Ran, Lun*, Zhang, Yanzi, Li, Ziqi, Zhang, Wensi. Data driven approaches to integrated closed-loop sustainable supply chain design under multi-uncertainties. Journal of Cleaner Production, 185, 105–127.",
    note: "Top 期刊，影响因子 11.1",
  },
];

/** 代表性科研项目（页面给出 3 项，含时间与状态） */
const projects = [
  {
    type: "国家自然科学基金面上项目",
    title: "内外部数据驱动下韧性供应链网络规划与关键设施防护研究",
    period: "2024.01–2027.12",
    status: "在研",
  },
  {
    type: "国家自然科学基金青年项目",
    title: "数据驱动下考虑多层节点服务失效关联的闭环供应链网络设计优化问题研究",
    period: "2022.01–2023.12",
    status: "在研",
  },
  {
    type: "博士后科学基金面上项目",
    title: "数据驱动的新能源汽车换电服务优化研究",
    period: "2021.11–2022.09",
    status: "结题",
  },
];
</script>

<style scoped>
.page-wrap {
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 50px;
  padding: 24px 16px 60px;
  background: #f5f7fa;
}
.hero {
  border-radius: 16px;
  margin-bottom: 16px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  grid-gap: 20px;
  align-items: center;
}
.hero-text .name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.name {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.subline {
  color: #666;
  margin-top: 6px;
}
.links {
  margin-top: 8px;
}
.basic {
  margin-top: 12px;
}
.intro-title {
  margin-top: 16px;
}
.intro {
  line-height: 1.9;
  color: #333;
  margin-top: 10px;
}
.content-card {
  border-radius: 16px;
  margin-top: 16px;
  padding: 8px 8px 16px;
}
.tabs :deep(.el-tabs__item) {
  font-size: 15px;
}
.section {
  margin-top: 4px;
}
.subhead {
  font-size: 16px;
  font-weight: 700;
  margin: 16px 0 8px;
}
.dir-card {
  border-radius: 12px;
  margin-bottom: 12px;
}
.dir-title {
  font-weight: 600;
  margin-bottom: 6px;
}
.bullets {
  padding-left: 18px;
  margin: 0;
}
.bullets li {
  line-height: 1.8;
}
.item-title {
  font-weight: 600;
}
.item-sub {
  color: #666;
  margin-top: 4px;
}
.more-link {
  margin-top: 8px;
}
.source {
  text-align: right;
  margin-top: 16px;
  color: #666;
  font-size: 13px;
}
@media (max-width: 640px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text .name-row {
    justify-content: center;
  }
}
/* Header */
.header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 32px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1e40af;
}

.login-btn-container {
  display: flex;
  align-items: center;
}

.login-btn {
  background-color: #2563eb;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #1d4ed8;
}
</style>
